<div class="span2" id="left" style="background: #f9f9f9;padding-bottom: 50px;">
    
    <div class="sidebar-nav">
        <ul class="nav nav-list" >
    <?php
        if(!empty($admin_sidebars)):
            foreach($admin_sidebars as $key=>$val):
    ?>
            <li class="nav-header"><?php echo strtoupper($key) ?></li>
            <?php if(is_array($val)): 
                foreach($val as $value):
            ?>
                <li><?php echo anchor('administrator/'.$key.'/'.strtolower($value),$value) ?></li>
            <?php 
                endforeach;
            endif;?>
    <?php
            endforeach;
        endif;
    ?>
        </ul>
    </div><!--/.well -->
</div><!--/span-->
